package xin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author young
 * @since 2023年10月09日
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("t_auth_role_permission")
@ApiModel(value = "TAuthRolePermission对象", description = "")
public class TAuthRolePermission implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;



    @TableField("role_id")
    private Long roleId;

    @TableField("permission_id")
    private Long permissionId;

    @ApiModelProperty("权限的唯一标识")
    @TableField("permission_sn")
    private String permissionSn;

    @ApiModelProperty("父级权限名称")
    @TableField(exist = false)
    private  String parentName;


}
